export default function HomePage() {
  const handleClick = async () => {
    const res = await window.api.handlePingPong('周广斌')
    console.log(res)
    if (res.code != 200) {
      alert(res.msg)
    }
  }
  return (
    <div>
      <h1>欢迎来到首页</h1>
      <button onClick={handleClick}>点击我</button>
    </div>
  );
}
